package com.lanhai.zhonglai.beans;

import com.lanhai.zhonglai.enums.AgvMountTypeEnum;
import com.lanhai.zhonglai.enums.AgvReceiveEnum;

/**
 * AGV上报上来的数据
 * @author zhengwei
 *
 */
public class AgvDataBean {
	//小车指令类型
	private AgvReceiveEnum receiveType;
	private int x;
	private int y;
	private int agvId;
	private int power;
	private int road;

	private boolean upFull;
	private boolean downFull;

	//data格式化
	private String cmdStr;
	private byte[] data;

	private  AgvMountTypeEnum mountType;

	private int pointId;
	private long ts; //当前时间

	//********** 记录相关
	private long lastChaneTime=0;   //上一次状态的时间
	private AgvReceiveEnum lastReceive=AgvReceiveEnum.LX;  //上一次的状态

	public long getLastChaneTime() {
		return lastChaneTime;
	}

	public void setLastChaneTime(long lastChaneTime) {
		this.lastChaneTime = lastChaneTime;
	}

	public AgvReceiveEnum getLastReceive() {
		return lastReceive;
	}

	public void setLastReceive(AgvReceiveEnum lastReceive) {
		this.lastReceive = lastReceive;
	}

	public AgvReceiveEnum getReceiveType() {
		return receiveType;
	}
	public void setReceiveType(AgvReceiveEnum receiveType) {
		this.receiveType = receiveType;
	}
	public AgvMountTypeEnum getMountType() {
		return mountType;
	}
	public void setMountType(AgvMountTypeEnum mountType) {
		this.mountType = mountType;
	}
	public int getX() {
		return x;
	}
	public void setX(int x) {
		this.x = x;
	}
	public int getY() {
		return y;
	}
	public void setY(int y) {
		this.y = y;
	}
	public int getAgvId() {
		return agvId;
	}
	public void setAgvId(int agvId) {
		this.agvId = agvId;
	}
	public int getPower() {
		return power;
	}
	public void setPower(int power) {
		this.power = power;
	}
	public int getRoad() {
		return road;
	}
	public void setRoad(int road) {
		this.road = road;
	}
	public boolean isUpFull() {
		return upFull;
	}
	public void setUpFull(boolean upFull) {
		this.upFull = upFull;
	}
	public boolean isDownFull() {
		return downFull;
	}
	public void setDownFull(boolean downFull) {
		this.downFull = downFull;
	}
	public String getCmdStr() {
		return cmdStr;
	}
	public void setCmdStr(String cmdStr) {
		this.cmdStr = cmdStr;
	}
	public byte[] getData() {
		return data;
	}
	public void setData(byte[] data) {
		this.data = data;
	}


	public int getPointId() {
		return pointId;
	}

	public void setPointId(int pointId) {
		this.pointId = pointId;
	}

	public long getTs() {
		return ts;
	}

	public void setTs(long ts) {
		this.ts = ts;
	}
}
